//
//  BindCardInputCell.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/29.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "BindCardInputCell.h"

@implementation BindCardInputCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView {
    BindCardInputCell *cell = [tableView dequeueReusableCellWithIdentifier:BINDCARDINPUTCELL];
    if (!cell) {
        cell = [[BindCardInputCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:BINDCARDINPUTCELL];
    }
    return cell;
}

- (IBAction)cellTextChanged:(id)sender {
    [[NSNotificationCenter defaultCenter] postNotificationName:@"textChangeNotification" object:self];
}

- (IBAction)clickCarameAction:(id)sender {
    if (self.BindCardDelegate &&[self.BindCardDelegate respondsToSelector:@selector(BindCardInputCell:selectIndexpath:)]) {
        [self.BindCardDelegate BindCardInputCell:self selectIndexpath:self.indexPath];
    }
}



@end
